package com.xnx3.banmahuishou.core.entity;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.xnx3.j2ee.entity.BaseEntity;

/**
 * 骑手转单记录表
 * @author zxy
 */
@Entity()
@Table(name = "laji_transfer_order_record")
public class TransferOrderRecord  extends BaseEntity implements java.io.Serializable{
	private Integer id;	//自增id
	private Integer qishouUserid;	//骑手用户id,关联user.id
	private String qishouName;	//骑手姓名,关联user.nickname
	private Integer wanggeUserid;	//网格用户id,关联user.id
	private String wanggeName;	//网格名称,关联user.nickname
	private Integer xinqishouUserid;//网格分配的新骑手id,对应User.id
	private String xinqishouName;//网格分配的新骑手的名字,对应User.nickname
	private Integer orderId;//订单id 对应order.id
	private String reason;//转单理由
	private String orderNo;//订单编号
	private Integer createTime; //发起转单时间,十位数时间戳
	
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	
	@Column(name = "qishou_userid", columnDefinition="int(11) COMMENT '骑手用户id,关联user.id' default '0'")
	public Integer getQishouUserid() {
		return qishouUserid;
	}
	public void setQishouUserid(Integer qishouUserid) {
		this.qishouUserid = qishouUserid;
	}
	
	@Column(name = "qishou_name", columnDefinition="char(30) COLLATE utf8mb4_unicode_ci COMMENT '骑手姓名,关联user.nickname' default ''")
	public String getQishouName() {
		return qishouName;
	}
	public void setQishouName(String qishouName) {
		this.qishouName = qishouName;
	}
	
	@Column(name = "wangge_userid", columnDefinition="int(11) COMMENT '网格用户id,关联user.id' default '0'")
	public Integer getWanggeUserid() {
		return wanggeUserid;
	}
	public void setWanggeUserid(Integer wanggeUserid) {
		this.wanggeUserid = wanggeUserid;
	}
	
	@Column(name = "wangge_name", columnDefinition="char(100) COLLATE utf8mb4_unicode_ci COMMENT '网格名称,关联user.nickname' default ''")
	public String getWanggeName() {
		return wanggeName;
	}
	public void setWanggeName(String wanggeName) {
		this.wanggeName = wanggeName;
	}
	
	@Column(name = "xinqishou_userid", columnDefinition="int(11) COMMENT '网格分配的新骑手id,对应User.id' default '0'")
	public Integer getXinqishouUserid() {
		return xinqishouUserid;
	}
	public void setXinqishouUserid(Integer xinqishouUserid) {
		this.xinqishouUserid = xinqishouUserid;
	}
	
	@Column(name = "xinqishou_name", columnDefinition="char(30) COLLATE utf8mb4_unicode_ci COMMENT '网格分配的新骑手id,对应User.nickname' default ''")
	public String getXinqishouName() {
		return xinqishouName;
	}
	public void setXinqishouName(String xinqishouName) {
		this.xinqishouName = xinqishouName;
	}
	
	@Column(name = "order_id", columnDefinition="int(11) COMMENT '订单id 对应order.id' default '0'")
	public Integer getOrderId() {
		return orderId;
	}
	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}
	
	@Column(name = "reason", columnDefinition="char(255) COLLATE utf8mb4_unicode_ci COMMENT '转单理由' default ''")
	public String getReason() {
		return reason;
	}
	public void setReason(String reason) {
		this.reason = reason;
	}
	
	@Column(name = "order_no", columnDefinition="char(10) COLLATE utf8mb4_unicode_ci COMMENT '订单编号' default ''")
	public String getOrderNo() {
		return orderNo;
	}
	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}
	
	@Column(name = "create_time", columnDefinition="int(11) COMMENT '发起转单时间,十位数时间戳' default '0'")
	public Integer getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Integer createTime) {
		this.createTime = createTime;
	}
	
	@Override
	public String toString() {
		return "TransferOrderRecord [id=" + id + ", qishouUserid=" + qishouUserid + ", qishouName=" + qishouName
				+ ", wanggeUserid=" + wanggeUserid + ", wanggeName=" + wanggeName + ", xinqishouUserid="
				+ xinqishouUserid + ", xinqishouName=" + xinqishouName + ", orderId=" + orderId + ", reason=" + reason
				+ ", orderNo=" + orderNo + ", createTime=" + createTime + "]";
	}
	
	
	
}
